﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005B7 RID: 1463
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishSectionIdScRsp : IMessage<FinishSectionIdScRsp>, IMessage, IEquatable<FinishSectionIdScRsp>, IDeepCloneable<FinishSectionIdScRsp>, IBufferMessage
	{
		// Token: 0x170012BB RID: 4795
		// (get) Token: 0x060041C1 RID: 16833 RVA: 0x000B3879 File Offset: 0x000B1A79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishSectionIdScRsp> Parser
		{
			get
			{
				return FinishSectionIdScRsp._parser;
			}
		}

		// Token: 0x170012BC RID: 4796
		// (get) Token: 0x060041C2 RID: 16834 RVA: 0x000B3880 File Offset: 0x000B1A80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishSectionIdScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012BD RID: 4797
		// (get) Token: 0x060041C3 RID: 16835 RVA: 0x000B3892 File Offset: 0x000B1A92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishSectionIdScRsp.Descriptor;
			}
		}

		// Token: 0x060041C4 RID: 16836 RVA: 0x000B3899 File Offset: 0x000B1A99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishSectionIdScRsp()
		{
		}

		// Token: 0x060041C5 RID: 16837 RVA: 0x000B38A4 File Offset: 0x000B1AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishSectionIdScRsp(FinishSectionIdScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.sectionId_ = other.sectionId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060041C6 RID: 16838 RVA: 0x000B38FC File Offset: 0x000B1AFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishSectionIdScRsp Clone()
		{
			return new FinishSectionIdScRsp(this);
		}

		// Token: 0x170012BE RID: 4798
		// (get) Token: 0x060041C7 RID: 16839 RVA: 0x000B3904 File Offset: 0x000B1B04
		// (set) Token: 0x060041C8 RID: 16840 RVA: 0x000B390C File Offset: 0x000B1B0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170012BF RID: 4799
		// (get) Token: 0x060041C9 RID: 16841 RVA: 0x000B3915 File Offset: 0x000B1B15
		// (set) Token: 0x060041CA RID: 16842 RVA: 0x000B391D File Offset: 0x000B1B1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SectionId
		{
			get
			{
				return this.sectionId_;
			}
			set
			{
				this.sectionId_ = value;
			}
		}

		// Token: 0x170012C0 RID: 4800
		// (get) Token: 0x060041CB RID: 16843 RVA: 0x000B3926 File Offset: 0x000B1B26
		// (set) Token: 0x060041CC RID: 16844 RVA: 0x000B392E File Offset: 0x000B1B2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x060041CD RID: 16845 RVA: 0x000B3937 File Offset: 0x000B1B37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishSectionIdScRsp);
		}

		// Token: 0x060041CE RID: 16846 RVA: 0x000B3948 File Offset: 0x000B1B48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishSectionIdScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.SectionId == other.SectionId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060041CF RID: 16847 RVA: 0x000B39A8 File Offset: 0x000B1BA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.SectionId != 0U)
			{
				num ^= this.SectionId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060041D0 RID: 16848 RVA: 0x000B3A16 File Offset: 0x000B1C16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060041D1 RID: 16849 RVA: 0x000B3A1E File Offset: 0x000B1C1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060041D2 RID: 16850 RVA: 0x000B3A28 File Offset: 0x000B1C28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.Reward);
			}
			if (this.SectionId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.SectionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060041D3 RID: 16851 RVA: 0x000B3AA0 File Offset: 0x000B1CA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.SectionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SectionId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060041D4 RID: 16852 RVA: 0x000B3B10 File Offset: 0x000B1D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishSectionIdScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.SectionId != 0U)
			{
				this.SectionId = other.SectionId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060041D5 RID: 16853 RVA: 0x000B3B8C File Offset: 0x000B1D8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060041D6 RID: 16854 RVA: 0x000B3B98 File Offset: 0x000B1D98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 90U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.SectionId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040019D2 RID: 6610
		private static readonly MessageParser<FinishSectionIdScRsp> _parser = new MessageParser<FinishSectionIdScRsp>(() => new FinishSectionIdScRsp());

		// Token: 0x040019D3 RID: 6611
		private UnknownFieldSet _unknownFields;

		// Token: 0x040019D4 RID: 6612
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040019D5 RID: 6613
		private uint retcode_;

		// Token: 0x040019D6 RID: 6614
		public const int SectionIdFieldNumber = 14;

		// Token: 0x040019D7 RID: 6615
		private uint sectionId_;

		// Token: 0x040019D8 RID: 6616
		public const int RewardFieldNumber = 11;

		// Token: 0x040019D9 RID: 6617
		private ItemList reward_;
	}
}
